#!/bin/sh

if [ $# -lt 1 ]; then 
	echo "Usage: $0 number startdate"
	exit
fi

if [ $# -gt 3 ]; then 
	echo "Usage: $0 number startdate"
	exit
fi

if [ $# -eq 2 ]; then 

	t_today=`date -I`

elif [ $# -eq 3 ]; then 

	t_today=$2

fi

prefix=$3

counter=0


((lend=$1-1))

while true
do 
	if [ $counter -gt $lend ]; then
		echo ""
		exit
	fi

	t_date_1=`daa +$counter $t_today`
	
	if [ $counter -eq 0 ]; then 
		printf "%s%s" $prefix$t_date_1
		t_date=$t_date_1

	else
		printf ";ln -s %s%s      %s%s" $prefix$t_date $prefix$t_date_1 
	fi

	((counter=counter+1))
done

